package jwr.basic;

public class BicGugudan {

	public static void main(String[] args) {
		int i = 1;
		int j;
		System.out.println("\t\t\t      Multiplication Table");
		System.out.print("\t");
		while(i<10){
			if(i==9){
				System.out.println(i+ "\t");
				System.out.println("---------------------------------------------------------------------------");
			}else{
				System.out.print(i+ "\t");
			}
			i++;
		}
		i = 1;
		while(i<10){
			j=1;
			while(j<10){
				if(j==1){
					System.out.print(i + "\t" + i+"\t");
				}else if(j==9){
					System.out.println(j*i + "\t");
				}else{
					System.out.print(j*i + "\t");
				}
				j++;
			}
			i++;
		}
		/*for(i=1;i<10;i++){
			for(int j=1;j<10;j++){
				if(j==1){
					System.out.print(i + " |\t" + i+"\t");
				}else if(j==9){
					System.out.println(j*i + "\t");
				}else{
					System.out.print(j*i + "\t");
				}
			}
		}*/
		
		
		
	}

}
